//  不要给我WA WA 叫
//  一定AC
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <iomanip>
#include <climits>
#define int long long 
using namespace std;
const int N = 1e5 + 10;
int a[N];
void solve()
{
     string s;
     cin >> s; 
     int p = (s[3] - '0') + (s[2] - '0') * 10 + (s[1] - '0') * 100 + (s[0] - '0') * 1000;//2014
     cout << p + 10 << "-" << s[5] << s[6] << "-" << s[8] << s[9] << endl;
    /*   cout << stoi(s.substr(0,4)) + 10;
     for(int i = 4; i < s.size(); i++) cout << s[i];
     cout << endl; */

}
signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0),cout.tie(0);
    int t = 1;
    while(t -- )  solve();
    return 0;
}
